package com.ruoyi.common.enums.wxpay;


import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum WxApiType {

    /**
     * JSAPI/小程序下单
     */
    JSAPI_PAY("/v3/pay/transactions/jsapi"),

    /**
     * 微信支付订单号查询订单
     */
    TRANSACTION_QUERY("/v3/pay/transactions/id/{transaction_id}"),

    /**
     * 商户订单号查询订单
     */
    ORDER_QUERY("/v3/pay/transactions/out-trade-no/{out_trade_no}"),

    /**
     * 关闭订单
     */
    CLOSE_ORDER("/v3/pay/transactions/out-trade-no/{out_trade_no}/close"),

    /**
     * 申请退款
     */
    REFUND("/v3/refund/domestic/refunds"),

    /**
     * 查询单笔退款
     */
    REFUND_QUERY("/v3/refund/domestic/refunds/{out_refund_no}"),

    /**
     * 发起异常退款
     */
    REFUND_EXCEPTION("/v3/refund/domestic/refunds/{refund_id}/apply-abnormal-refund"),

    /**
     * 申请交易账单
     */
    TRANSACTION_BILL("/v3/bill/tradebill"),

    /**
     * 申请资金账单
     */
    FUND_BILL("/v3/bill/fundflowbill");

    private final String type;
}
